package cn.ekgc.qy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Getter
@Setter
@Component
@ToString
public class Registry {

  private long id;
  private long patientId;
  private long scheduleId;
  private long userId;
  private long departmentId;
  private long roomId;
  private long status;
  private double fee;
  private double payFee;
  private double medicareFee;
  private long isMedicare;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime registryTime;
  private LocalDateTime consultationTime;
  private LocalDateTime createdTime;
  private LocalDateTime updatedTime;
}
